public enum Car {
  AUDI {
    public int getPrice() {
      return 25000;
    }
  },
  MERCEDES {
    public int getPrice() {
      return 30000;
    }
  },
  BMW {
    public int getPrice() {
      return 20000;
    }
  };

  public abstract int getPrice();
}
